/*
 * Copyright (C) 2025 Tsingteng MicroSystem
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef _NCI_API_H_
#define _NCI_API_H_

#include "nci_base.h"
#include "nci_types.h"
#include "nfc_transport_api.h"

/**
 * @brief NCI层初始化
 *
 * @note nci_core/nfcee/rf等接口函数需要nci_init成功后才能使用
 *
 * @return 初始化成功返回NCI_STATUS_OK，否则返回错误码
*/
tNCI_STATUS nci_init();
/**
 * @brief NCI层退出
 *
 * @note nci_deinit后，nci_core/nfcee/rf等接口函数不能再使用
 *
 * @param is_shutdown 是否进入关机模式，true为关机模式，false为正常关闭NFC
 *
 * @return 退出成功返回NCI_STATUS_OK，否则返回错误码
*/
tNCI_STATUS nci_deinit(bool is_shutdown);

#endif /* _NCI_API_H_ */
